package com.design.AdapterMode.AdapterDemo;

import com.design.AdapterMode.demo.Filter3;
import com.design.AdapterMode.demo.Word;

public class Adapter3 implements IFilterService{

    private Filter3 filter3 = new Filter3();

    @Override
    public String filter(String word) {
        final Word build = Word.builder().word(word).replace("*").build();
        return filter3.filter(build, 1);
    }
}
